<html>
<head>
	<meta charset="UTF-8">
	<meta content="IE=edge" http-equiv="X-UA-Compatible">
	<meta content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width" name="viewport">
	<title>2903：多边形 </title>
	<!-- css -->
	<link href="../css/base.min.css" rel="stylesheet">
	<link href="../css/project.min.css" rel="stylesheet">
	
	<!-- favicon -->
	<!-- ... -->
</head>
<body class="page-brand">
	<header class="header header-transparent header-waterfall ui-header">
		<ul class="nav nav-list pull-left">
			<li>
				<a data-toggle="menu" href="#menu">
					<span class="icon icon-lg">menu</span>
				</a>
			</li>
		</ul>
		<a class="header-logo header-affix-hide margin-left-no margin-right-no" data-offset-top="213" data-spy="affix">多边形 </a>
		<span class="header-logo header-affix margin-left-no margin-right-no" data-offset-top="213" data-spy="affix">多边形 </span>
	</header>
	<nav aria-hidden="true" class="menu" id="menu" tabindex="-1">
		<div class="menu-scroll">
			<div class="menu-content">
				<a class="menu-logo" href="../index.html">BZOJ离线题库</a>
				<ul class="nav">
					<li>
						<a class="waves-attach" data-toggle="collapse" href="#problems">题目</a>
						<ul class="menu-collapse collapse in" id="problems">
							<li>
								<a class="waves-attach" href="../index.html">主页</a>
							</li>
							<li>
								<a class="waves-attach" href="../list.html">题目列表</a>
							</li>
						</ul>
					</li>
					<li>
						<a class="collapsed waves-attach" data-toggle="collapse" href="#about">关于</a>
						<ul class="menu-collapse collapse" id="about">
							<li>
								<a class="waves-attach" href="../about.html">关于此项目</a>
							</li>
						</ul>
					</li>
					
				</ul>
			</div>
		</div>
	</nav>
	<main class="content">
		<div class="content-header ui-content-header">
			<div class="container">
				<h1 class="content-heading">
                多边形                 </h1>
                <p>时间限制：10s&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  空间限制：128MB</p>			</div>
		</div>
		<div class="container">
			<section class="content-inner margin-top-no">
				<div class="row">
					<div class="col-lg-13 col-md-13">
						<div class="card margin-bottom-no">
							<div class="card-main">
								<div class="card-inner">
									
                                <h3>题目描述</h3><p><p class="MsoNormal" align="left" style="margin: 0cm -1.1pt 0pt 0cm; line-height: 10pt; text-align: left; mso-line-height-rule: exactly; mso-layout-grid-align: none"><span lang="EN-US" style="font-size: 10pt; color: black; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt"><font face="Times New Roman"><span style="mso-spacerun: yes">&nbsp;</span><o:p></o:p></font></span></p>
<p class="MsoNormal" align="left" style="margin: 0cm -1.1pt 0pt 0cm; line-height: 4pt; text-align: left; mso-line-height-rule: exactly; mso-layout-grid-align: none"><span lang="EN-US" style="font-size: 10pt; color: black; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt"><font face="Times New Roman"><span style="mso-spacerun: yes">&nbsp;</span><o:p></o:p></font></span></p>
<p class="MsoNormal" align="left" style="margin: 0cm -3pt 0pt 18pt; line-height: 13.5pt; text-align: left; mso-line-height-rule: exactly; mso-layout-grid-align: none"><span style="font-size: 11pt; color: black; font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">题目描述</span><span lang="EN-US" style="font-size: 11pt; color: black; font-family: Calibri; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt"> <o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="margin: 0.5pt -3pt 0pt 39pt; line-height: 13pt; text-align: left; mso-line-height-rule: exactly; mso-layout-grid-align: none; tab-stops: 165.35pt 174.75pt"><span style="font-size: 11pt; color: black; font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">给定一个任意简单多边形。</span><span lang="EN-US" style="font-size: 11pt; color: black; font-family: Calibri; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt"><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>N</span><span lang="EN-US" style="font-size: 11pt; color: black; font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-hansi-font-family: Calibri; mso-font-kerning: 0pt"><span style="mso-tab-count: 1">&nbsp; </span></span><span style="font-size: 11pt; color: black; font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-hansi-font-family: Calibri; mso-font-kerning: 0pt">个顶点可以选择在任意多对顶点之间连边，要求连出来边<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" align="left" style="margin: 0cm -3pt 0pt 18pt; line-height: 13pt; text-align: left; mso-line-height-rule: exactly; mso-layout-grid-align: none; tab-stops: 360.05pt 372.55pt"><span style="font-size: 11pt; color: black; font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">不能与原有的边和其他连出来的边</span><span style="font-size: 11pt; color: red; font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">严格相交</span><span style="font-size: 11pt; color: black; font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">。在连出的边的总长度不超过</span><span lang="EN-US" style="font-size: 11pt; color: black; font-family: Calibri; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt"><span style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>M</span><span lang="EN-US" style="font-size: 11pt; color: black; font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-hansi-font-family: Calibri; mso-font-kerning: 0pt"><span style="mso-tab-count: 1">&nbsp; </span></span><span style="font-size: 11pt; color: black; font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-hansi-font-family: Calibri; mso-font-kerning: 0pt">的情况下，最<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" align="left" style="margin: 0.5pt -3pt 0pt 18pt; line-height: 13.5pt; text-align: left; mso-line-height-rule: exactly; mso-layout-grid-align: none"><span style="font-size: 11pt; color: black; font-family: 宋体; mso-bidi-font-size: 12.0pt; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">大化新图形的面积。</span><span lang="EN-US" style="font-size: 11pt; color: black; font-family: Calibri; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt"> <o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="margin: 0cm -1.1pt 0pt 0cm; line-height: 10pt; text-align: left; mso-line-height-rule: exactly; mso-layout-grid-align: none"><span lang="EN-US" style="font-size: 10pt; color: black; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt"><font face="Times New Roman"><span style="mso-spacerun: yes">&nbsp;</span><o:p></o:p></font></span></p>
<p class="MsoNormal" align="left" style="margin: 0cm -1.1pt 0pt 0cm; line-height: 6pt; text-align: left; mso-line-height-rule: exactly; mso-layout-grid-align: none"><span lang="EN-US" style="font-size: 10pt; color: black; mso-bidi-font-size: 12.0pt; mso-font-kerning: 0pt"><font face="Times New Roman"><span style="mso-spacerun: yes">&nbsp;</span><o:p></o:p></font></span></p>
<p></p></p><hr/><h3>输入格式</h3><p><div style="margin: 0.5pt -3pt 0pt 39pt; line-height: 13pt; text-align: left" align="left"><span style="font-size: 11pt; color: black">每组数据第一行两个整数</span><span style="font-size: 11pt; color: black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; N</span><span style="font-size: 11pt; color: black">，</span><span style="font-size: 11pt; color: black">&nbsp;M</span><span style="font-size: 11pt; color: black">。接下来</span><span style="font-size: 11pt; color: black">&nbsp;&nbsp;&nbsp; N</span><span style="font-size: 11pt; color: black">&nbsp;</span><span style="font-size: 11pt; color: black">行，按逆时针顺序给出每个顶点的坐标。当</span></div>
<div style="margin: 0cm -1.1pt 0pt 18pt; line-height: 13.5pt; text-align: left" align="left"><span style="font-size: 11pt; color: black">N=M=0</span><span style="font-size: 11pt; color: black">时输入结束。</span><span style="font-size: 11pt; color: black">&nbsp;</span></div>
<div style="margin: 0cm -1.1pt 0pt 0cm; line-height: 10pt" align="left"><span style="font-size: 10pt; color: black">&nbsp;</span></div>
<div style="margin: 0cm -1.1pt 0pt 0cm; line-height: 8pt" align="left"><span style="font-size: 10pt; color: black">&nbsp;</span></div></p><hr/><h3>输出格式</h3><p><div style="margin: 0cm -3pt 0pt 39pt; line-height: 13.5pt; text-align: left" align="left"><span style="font-size: 11pt; color: black">对于每组输入数据输出一行，为一个实数。表示新图形的面积，输出保留一位小数。</span><span style="font-size: 11pt; color: black">&nbsp;&nbsp; </span></div>
<div style="margin: 0cm -1.1pt 0pt 0cm; line-height: 10pt" align="left"><span style="font-size: 10pt; color: black">&nbsp;</span></div>
<div style="margin: 0cm -1.1pt 0pt 0cm; line-height: 6pt" align="left"><span style="font-size: 10pt; color: black">&nbsp;</span></div></p><hr/><h3>样例输入</h3><pre>5 4
0 0
4 0
4 4
2 2
0 4
0 0
</pre><hr/><h3>样例输出</h3><pre>16.0</pre><hr/><h3>提示</h3><p><div style="margin: 0cm -3pt 0pt 18pt; line-height: 13.5pt" align="left"><span style="font-size: 11pt; color: black">5</span><span style="font-size: 11pt; color: black">&le;</span><span style="font-size: 11pt; color: black">&nbsp;&nbsp; N</span><span style="font-size: 11pt; color: black">&le;</span><span style="font-size: 11pt; color: black; letter-spacing: 0.05pt">64</span><span style="font-size: 11pt; color: black">，</span><span style="font-size: 11pt; color: black">0</span><span style="font-size: 11pt; color: black">&le;</span><span style="font-size: 11pt; color: black">M</span><span style="font-size: 11pt; color: black">&le;</span><span style="font-size: 11pt; color: black">400</span><span style="font-size: 11pt; color: black">。所有坐标均为不超过</span><span style="font-size: 11pt; color: black; letter-spacing: -0.05pt">&nbsp;&nbsp; 100</span><span style="font-size: 11pt; color: black">&nbsp;</span><span style="font-size: 11pt; color: black">的自然数。数据不超过十组</span></div>
<p></p></p><hr/><h3>题目来源</h3><p>没有写明来源</p>
								</div>
							</div>
						</div>
					</div>
				</div>
				
				
			</section>
		</div>
	</main>

	<div class="fbtn-container">
		<div class="fbtn-inner">
			<a class="fbtn fbtn-lg fbtn-brand-accent waves-attach waves-circle waves-light waves-effect" data-toggle="dropdown" aria-expanded="true"><span class="fbtn-text fbtn-text-left">Menu</span><span class="fbtn-ori icon">apps</span><span class="fbtn-sub icon">close</span></a>
			<div class="fbtn-dropup">
				<a class="fbtn fbtn-brand waves-attach waves-circle waves-light waves-effect" href="../list.html" target="_self"><span class="fbtn-text fbtn-text-left">题目列表</span><span class="icon">menu</span></a>
				<a class="fbtn fbtn-green waves-attach waves-circle waves-effect" href="../index.html" target="_self"><span class="fbtn-text fbtn-text-left">返回主页</span><span class="icon">home</span></a>
				<a class="fbtn waves-attach waves-circle waves-effect" href="http://www.lydsy.com/JudgeOnline/submitpage.php?id=2903" target="_blank"><span class="fbtn-text fbtn-text-left">提交代码</span><span class="icon">send</span></a>
				<a class="fbtn fbtn-orange waves-attach waves-circle waves-effect" href="http://www.lydsy.com/JudgeOnline/wttl/wttl.php?pid=2903" target="_blank"><span class="fbtn-text fbtn-text-left">试题讨论</span><span class="icon">chat</span></a>
				
			</div>
		</div>
	</div>

	<!-- js -->
	<script src="../js/jquery.min.js"></script>
	<script src="../js/base.min.js"></script>
	<script src="../js/project.min.js"></script>
</body>
</html>